import 'package:ayj_flutter_chat_app/common/third/agora/engine/agora_engine_controller.dart';
import 'package:flutter/material.dart';
import 'package:ayj_flutter_chat_app/common/configs/project_config.dart';


class VoiceShrinkWidget extends StatelessWidget {
  final ControllerType cType;
  final ValueChanged<bool> onTap;

  const VoiceShrinkWidget({
    super.key,
    required this.cType,
    required this.onTap,
  });

  @override
  Widget build(BuildContext context) {
    return AppImage.assets(AppR.chat_meeting_shrink,
      width: 32.r,
      height: 32.r,
    ).addGestureDetector(onTap: (){
      onTap(true);
      AgoraEngineController.to.onlyPopTap();
    });
  }
}